package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 后台管理员账号
 * @author Rongjie
 */
@Data
@TableName("mall_admin")
@KeySequence(value = "mall_admin_SEQ")
@ApiModel(value = "MallAdmin对象")
public class MallAdmin implements Serializable{

       @ApiModelProperty(value = "归属管理员的uuid")
       private String appKey;

       @TableId(value = "admin_key", type = IdType.UUID)
       @ApiModelProperty(value = "AdminKey")
       private String adminKey;

       @ApiModelProperty(value = "头像")
       private String img;

       @ApiModelProperty(value = "昵称")
       private String nickName;

       @ApiModelProperty(value = "真实姓名")
       private String name;

       @ApiModelProperty(value = "创建时间", example = "1")
       private Integer createTime;

       @ApiModelProperty(value = "修改时间", example = "1")
       private Integer updateTime;

       @ApiModelProperty(value = "登录时间", example = "1")
       private Integer loginTime;

       @ApiModelProperty(value = "账号")
       private String userName;

       @ApiModelProperty(value = "密码")
       private String password;

       @ApiModelProperty(value = "验证码")
       private String verifyCode;

       @ApiModelProperty(value = "手机号")
       private String mobile;

       @ApiModelProperty(value = "状态：1启用 0禁用", example = "1")
       private Integer state;

       @ApiModelProperty(value = "版本", example = "1")
       @Version
       private Integer version;

}
